﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/admin_page.master"
    CodeBehind="product_batch_edite.aspx.cs" Inherits="YXShop.Web.admin.product.product_batch_edite" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />

    <script type="text/javascript" src="../../scripts/validate.js"></script>

    <link rel="stylesheet" href="../style/toolbar.css" type="text/css" />

    <script src="../scripts/public.js" type="text/javascript"></script>

    <script src="../scripts/images.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../scripts/calendar.js"></script>
    <link rel="stylesheet" href="../style/dtree.css" type="text/css" />

    <script type="text/javascript" src="../scripts/dtree.js"></script>

    <script type="text/javascript">
            var filelist=new Array();
        var objectC;
        function GetFile(control)
        {
            var y=control.offsetTop; 
            var x=control.offsetLeft; 
             
            objectC=control;
            while(control=control.offsetParent)
            {
                y+=control.offsetTop; 
                x+=control.offsetLeft;
            } 
            obj=$("fileLists");
            obj.style.visibility="visible";
            obj.style.left=x;
            obj.style.top=y+22;
        }
        function GetFileUrl(value)
        {
            objectC.value=value;
            $("fileLists").style.visibility="hidden";
        }
        function IsFilingSell(str)
        {
            if(str==1)
            {
                document.getElementById("ctl00_workspace_trFilingTime").style.display="";
                document.getElementById("ctl00_workspace_trDownTime").style.display="";
                document.getElementById("ctl00_workspace_trFilingCount").style.display="";
            }
            else
            {
                document.getElementById("ctl00_workspace_trFilingTime").style.display="none";
                document.getElementById("ctl00_workspace_trDownTime").style.display="none";
                document.getElementById("ctl00_workspace_trFilingCount").style.display="none";
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
    批量编辑商品
    <asp:Button ID="Button1" runat="server" CssClass="inputbutton" Text="保存设置" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" OnClick="ltbSave_Click" />
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="product_list.aspx?q_PutoutType=0" CssClass="inputbutton"
        Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
    <table class="form_table_input" border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr id="trArea" runat="server" style="display: none">
            <td class="form_table_input_info">
                所属地区：
            </td>
            <td>
                <asp:TextBox ID="txtArea" runat="server" ReadOnly></asp:TextBox>
                <asp:HiddenField runat="server" ID="hfid" />
            </td>
            <td>
                <div class="msgNormal">
                    选择商品所属地区。</div>
            </td>
        </tr>
        <tr id="trProductBrand" runat="server" style="display: none">
            <td class="form_table_input_info">
                品牌：
            </td>
            <td>
                <asp:DropDownList ID="ddlProductBrand" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <div class="msgNormal">
                    选择商品所属品牌。</div>
            </td>
        </tr>
        <tr id="trProductUnit" runat="server" style="display: none">
            <td class="form_table_input_info">
                计量单位：
            </td>
            <td>
                <asp:DropDownList ID="ddlProUnit" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <div class="msgNormal">
                    选择商品计量单位。</div>
            </td>
        </tr>
        <tr id="trProductWeight" runat="server" style="display: none">
            <td class="form_table_input_info">
                重量：
            </td>
            <td>
                <asp:TextBox ID="txtWeiht" CssClass="short_input" runat="server"></asp:TextBox>克(g)
            </td>
            <td>
                <asp:Panel ID="txtWeihtTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trProductIsSell" runat="server" style="display: none">
            <td class="form_table_input_info">
                是否上架销售：<asp:HiddenField ID="hfIsSell" runat="server" />
            </td>
            <td>
                <asp:RadioButtonList ID="rblIsShelves" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0" Text="否" onclick="IsFilingSell(0)"></asp:ListItem>
                    <asp:ListItem Value="1" Text="是" Selected="True" onclick="IsFilingSell(1)"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td>
                <div class="msgNormal">
                    选择是表示在前台页面显示该商品；否表示暂存数据库。</div>
            </td>
        </tr>
        <tr id="trFilingTime" runat="server" style="display: none">
            <td class="form_table_input_info">
                上架时间：
            </td>
            <td>
                <asp:TextBox ID="txtFilingTime" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtFilingTimeTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trDownTime" runat="server" style="display: none">
            <td class="form_table_input_info">
                下架时间：
            </td>
            <td>
                <asp:TextBox ID="txtDownTime" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtDownTimeTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trFilingCount" runat="server" style="display: none">
            <td class="form_table_input_info">
                上架数量：
            </td>
            <td>
                <asp:TextBox ID="txtUpCount" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtUpCountTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trDonateInteg" runat="server" style="display: none">
            <td class="form_table_input_info">
                赠送积分：
            </td>
            <td>
                <asp:TextBox ID="txtDonateInteg" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtDonateIntegTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trMarkePrice" runat="server" style="display: none">
            <td class="form_table_input_info">
                市场价格：
            </td>
            <td>
                <asp:TextBox ID="txtMarketPrice" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtMarketPriceTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trCostPrice" runat="server" style="display: none">
            <td class="form_table_input_info">
                商品成本价：
            </td>
            <td>
                <asp:TextBox ID="txtCostPrice" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtCostPriceTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trAlarmCount" runat="server" style="display: none">
            <td class="form_table_input_info">
                报警数量：
            </td>
            <td>
                <asp:TextBox ID="txtAlarm" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <div class="msgNormal">
                    当库存数据等于报警数量，系统会提示您。</div>
            </td>
        </tr>
        <tr id="trContentPageTemplate" runat="server" style="display: none">
            <td class="form_table_input_info">
                内容模板：
            </td>
            <td>
                <asp:TextBox ID="txtContentPageTemplate" runat="server" ReadOnly="true"></asp:TextBox>
                <div id="fileLists" class="dtree">
                    <asp:Literal ID="ltlFileList" runat="server"></asp:Literal>
                </div>
            </td>
            <td>
                <div class="msgNormal">
                    为空默认调用模型中设置的商品内容页模板，不为空时调现在所设的商品内容页模板。</div>
            </td>
        </tr>
        <tr id="trState" runat="server" style="display: none">
            <td class="form_table_input_info">
                商品标签：<asp:HiddenField ID="hfState" runat="server" />
            </td>
            <td>
                <asp:CheckBoxList ID="chklstState" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
                    <asp:ListItem>推荐</asp:ListItem>
                    <asp:ListItem>热卖</asp:ListItem>
                    <asp:ListItem>特价</asp:ListItem>
                    <asp:ListItem>活动</asp:ListItem>
                    <asp:ListItem>最新</asp:ListItem>
                    <asp:ListItem>首页</asp:ListItem>
                    <asp:ListItem>精品</asp:ListItem>
                </asp:CheckBoxList>
            </td>
            <td>
                <div class="msgNormal">
                    控制商品在前台模块显示的标示，要在首页显示必须勾选首页。</div>
            </td>
        </tr>
        <tr id="trMarking" runat="server" style="display: none">
            <td class="form_table_input_info">
                商品标识：<asp:HiddenField ID="hfMarking" runat="server" />
            </td>
            <td>
                <asp:CheckBoxList ID="chklstMarking" runat="server" RepeatDirection="Horizontal"
                    RepeatColumns="4">
                    <asp:ListItem Value="0">普通</asp:ListItem>
                    <asp:ListItem Value="1">团购</asp:ListItem>
                    <asp:ListItem Value="2">拍卖</asp:ListItem>
                    <asp:ListItem Value="3">点卡</asp:ListItem>
                    <asp:ListItem Value="4">批发</asp:ListItem>
                </asp:CheckBoxList>
            </td>
            <td>
                <div class="msgNormal">
                    控制商品在前台模块显示的标示.</div>
            </td>
        </tr>
        <tr id="trStock" runat="server" style="display: none">
            <td class="form_table_input_info">
                库存：
            </td>
            <td>
                <asp:TextBox ID="txtStock" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtStockTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trIntegralAmount" runat="server" style="display: none">
            <td class="form_table_input_info">
                积分购买额度：
            </td>
            <td>
                <asp:TextBox ID="txtIntegralAmount" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtIntegralAmountTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trShopPrice" runat="server" style="display: none">
            <td class="form_table_input_info">
                销售价格：
            </td>
            <td>
                <asp:TextBox ID="txtShopPrice" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtShopPriceTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trDescription" runat="server" style="display: none">
            <td class="form_table_input_info">
                商品简介：
            </td>
            <td>
                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" onblur="changeDescription()"
                    MaxLength="1500" Height="100px" Width="323px"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtDescriptionTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr id="trContentTitle" runat="server" style="display: none">
            <td class="form_table_input_info">
                详细介绍：
            </td>
            <td colspan="2">
                <div class="msgNormal">
                    输入信息对商品进行详细介绍</div>
            </td>
        </tr>
        <tr id="trContent" runat="server" style="display: none">
            <td colspan="3">
                <FCKeditorV2:FCKeditor ID="txtContent" runat="server" Height="450px">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    <asp:Button ID="ltbSave" runat="server" CssClass="inputbutton" Text="保存设置" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" OnClick="ltbSave_Click"/>
    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="product_list.aspx?q_PutoutType=0" CssClass="inputbutton"
        Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>
